<div class="widget"> <div class="widget-head"> <h4 class="heading">Bootbox <span>Manage modals with JavaScript API</span></h4> </div> <div class="widget-body"> <button id="modals-bootbox-alert" class="btn btn-primary">Alert</button> <button id="modals-bootbox-confirm" class="btn btn-primary">Confirm</button> <button id="modals-bootbox-prompt" class="btn btn-primary">Prompt</button> <button id="modals-bootbox-custom" class="btn btn-primary">Custom Dialog</button> </div> </div>
@import "http://localhost/shared/components/modules/admin/modals/assets/less/modals.less"; @import "http://localhost/shared/components/modules/admin/notifications/gritter/assets/lib/css/jquery.gritter.css"; @import "http://localhost/shared/components/modules/admin/notifications/gritter/assets/custom/less/gritter.less"; @import "assets/components/modules/admin/ui/buttons/assets/buttons.less";
<head>
section of your HTML document, before any JavaScript files: <link type="stylesheet/less" href="styles.less" />
NOTE All the styles from the CORE package also need to be imported in this file, before the component imports.
BODY You should include the following scripts at the end of the HTML document, right before the closing </body>
tag.
<script src="assets/components/modules/admin/modals/assets/js/bootbox.min.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/modals/assets/js/modals.init.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/notifications/gritter/assets/lib/js/jquery.gritter.min.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/notifications/gritter/assets/custom/js/gritter.init.js?v=v1.2.3"></script>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<!-- Modal inline --> <div class="modal modal-inline"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal heading --> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Modal header</h4> </div> <!-- // Modal heading END --> <!-- Modal body --> <div class="modal-body"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> </div> <!-- // Modal body END --> <!-- Modal footer --> <div class="modal-footer"> <a href="#" class="btn btn-default">Just a button</a> <a href="#modal-simple" data-toggle="modal" class="btn btn-primary">Open Live Modal</a> </div> <!-- // Modal footer END --> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="modal-simple"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal heading --> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 class="modal-title">Modal header</h3> </div> <!-- // Modal heading END --> <!-- Modal body --> <div class="modal-body"> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> </div> <!-- // Modal body END --> <!-- Modal footer --> <div class="modal-footer"> <a href="#" class="btn btn-default" data-dismiss="modal">Close</a> <a href="#" data-dismiss="modal" class="btn btn-primary">Save changes</a> </div> <!-- // Modal footer END --> </div> </div> </div> <!-- // Modal END -->
@import "http://localhost/shared/components/modules/admin/modals/assets/less/modals.less"; @import "http://localhost/shared/components/modules/admin/notifications/gritter/assets/lib/css/jquery.gritter.css"; @import "http://localhost/shared/components/modules/admin/notifications/gritter/assets/custom/less/gritter.less"; @import "assets/components/modules/admin/ui/buttons/assets/buttons.less"; @import "http://localhost/shared/components/modules/admin/modals/assets/less/modal-inline.less";
<head>
section of your HTML document, before any JavaScript files: <link type="stylesheet/less" href="styles.less" />
NOTE All the styles from the CORE package also need to be imported in this file, before the component imports.
BODY You should include the following scripts at the end of the HTML document, right before the closing </body>
tag.
<script src="assets/components/modules/admin/modals/assets/js/bootbox.min.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/modals/assets/js/modals.init.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/notifications/gritter/assets/lib/js/jquery.gritter.min.js?v=v1.2.3"></script> <script src="assets/components/modules/admin/notifications/gritter/assets/custom/js/gritter.init.js?v=v1.2.3"></script>